﻿using System;
using System.Collections.Generic;

namespace SmartCommunity.Models;

/// <summary>
/// 房间
/// </summary>
public partial class RoomEntity
{
    /// <summary>
    /// 房间Id
    /// </summary>
    public Guid RoomId { get; set; }

    /// <summary>
    /// 楼栋ID
    /// </summary>
    public Guid BuildingId { get; set; }

    /// <summary>
    /// 房号
    /// </summary>
    public string RoomNo { get; set; } = null!;

    /// <summary>
    /// 完整房号
    /// </summary>
    public string RoomCode { get; set; } = null!;

    /// <summary>
    /// 所在楼层
    /// </summary>
    public int RoomFloor { get; set; }

    /// <summary>
    /// 房间用途
    /// </summary>
    public int RoomUsage { get; set; }

    /// <summary>
    /// 户型
    /// </summary>
    public int RoomType { get; set; }

    /// <summary>
    /// 房间状态
    /// </summary>
    public int RoomState { get; set; }

    public int RoomDeco { get; set; }

    /// <summary>
    /// 建筑面积
    /// </summary>
    public decimal? BuildArea { get; set; }

    /// <summary>
    /// 使用面积
    /// </summary>
    public decimal? UsageArea { get; set; }

    /// <summary>
    /// 是否空置房
    /// </summary>
    public ulong? IsIdle { get; set; }

    /// <summary>
    /// 户主
    /// </summary>
    public string? Manager { get; set; }

    /// <summary>
    /// 户主电话
    /// </summary>
    public string? ManagerTel { get; set; }

    /// <summary>
    /// 备注说明
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreatedBy { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string UpdatedBy { get; set; } = null!;

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime UpdatedTime { get; set; }

    public virtual BuildingEntity Building { get; set; } = null!;

    public virtual ICollection<RoomPersonEntity> RoomPersons { get; set; } = new List<RoomPersonEntity>();
}
